package com.frank.dubbo.consumer;

import com.frank.dubbo.provider.TestService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Reference(version = "${dubbo.service.version}")
    TestService testService;

    @GetMapping("/test")
    public String test() {
        return testService.test();
    }
}
